local CallEntity = require("gameLogic.fight.fightEntity.CallEntity")
local CollaborationEntity = class("CollaborationEntity", CallEntity)

-- 协同角色
function CollaborationEntity:ctor(excuter, normalSkillCfg, id, element)
    CollaborationEntity.super.ctor(self, excuter, normalSkillCfg, id, element)
end

function CollaborationEntity:setCollaboration(entity)
    self._collaboration = entity
end

function CollaborationEntity:checkCollaboration(entity)
    if not self._collaboration then
        return self:getCamp() == entity:getCamp()
    end
    if entity == self._collaboration then
        return true
    end
    return false
end

function CollaborationEntity:isFight()
    return false
end

return CollaborationEntity
